package extends1;

/**
 * 有参继承
 */
public class demo2 {
    public static void main(String[] args) {
        new B1(1,2,3);
    }
}
class A1{
    int a ;
    int b ;
    public A1(int a,int b)
    {
        this.a = a;
        this.b = b;
        System.out.println("A1:a,b："+a+b);
    }
}
class B1 extends A1{
    int c;
    public B1(int a,int b,int c){
        super(a,b);
        this.c = c;
        System.out.println("B1:a,b,c："+a+b+c);
    }

}
